import type { IFieldProps, IConfigProps } from '@/components/sofastui/AdvancedTable/interface'

export const fields: IFieldProps[] = [
  {
    label: '账号',
    prop: 'name',
    minWidth: 60,
    import: true,
    export: true,
    search: true,
  },
  {
    label: '昵称',
    prop: 'nickname',
    minWidth: 60,
    import: true,
    export: true,
    search: true,
  },
  {
    label: '手机号码',
    prop: 'phone',
    minWidth: 60,
    import: true,
    export: true,
    search: true,
  },
]

export const config: IConfigProps = {
  name: 'powerJobTable',
  rowKey: 'id',
  url: '/mock-api/user/list',
  selection: true,
  add: true,
  delete: true,
  expand: true,
  showIndex: true,
  import: true,
  export: true,
  search: true,
  advancedSearch: true,
  refresh: true,
  settings: true,
}
